<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : matches.xsl
    Created on : Utorok, 2010, apríl 20, 12:23
    Author     : Football-Statistics Team
    Description: season matches table transformation
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" omit-xml-declaration="yes" media-type="html/text"/>
    <xsl:param name="url"/>
    <xsl:param name="time"/>
    <xsl:param name="home"/>
    <xsl:param name="guests"/>
    <xsl:template match="/matches">
        <table id="sortTable" class="tablesorter">
        <thead>
          <tr>
            <th><img src="images/date.png" alt="" /><xsl:value-of select="$time"/></th>
            <th><xsl:value-of select="$home"/></th>
            <th><xsl:value-of select="$guests"/></th>
            <th><img src="images/results.png" alt="" /></th>
          </tr>
        </thead>
        <tbody>
        <xsl:for-each select="match">
            <tr>
                <td><xsl:value-of select="date"/><xsl:text> </xsl:text><xsl:value-of select="time"/></td>
                <td><xsl:value-of select="home"/></td>
                <td><xsl:value-of select="guests"/></td>
                <td><a href="{$url}/match?lid={//lid}&amp;mid={@id}"><xsl:value-of select="score"/></a></td>
            </tr>
        </xsl:for-each>
        </tbody>
        </table>
    </xsl:template>
</xsl:stylesheet>
